<?php
/*
 * 首页入口
 */

include 'bootstrap.php';
echo '网站入口及模版文件<br><br>';
function myscandir($path){

        $mydir=dir($path);

        while($file=$mydir->read()){

            if(strpos($file,'.php') !== false){
                $p='http://localhost/whoopsfeed-com/wow/'.$file;

                if(($file!=".") AND ($file!="..")){
                echo '<a href="'.$p.'" target="_self">'.$p.'</a><br>';
                }
            }


            //if((is_dir($p)) AND ($file!=".") AND ($file!="..")){
            //    myscandir($p);
            //}
        }
    }

    myscandir(dirname(__FILE__));

exit;
?>